package com.imooc.spikesystem.service.impl;

import com.imooc.spikesystem.dao.UserDao;
import com.imooc.spikesystem.domain.User;
import com.imooc.spikesystem.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wy
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    /**
     * @param id
     * @return
     */
    @Override
    public User getById(Integer id) {

        return userDao.getById(id);
    }
}
